import { http } from '@/utils/http'
import type {HealthNews} from '@/types/healthnews'


export const getLittleNews = () => {
    return http<HealthNews[]>({
      url: `/system/menu/getLittleNews`,
    })
  }

  export const getAllNews = () => {
    return http<HealthNews[]>({
      url: `/system/menu/getLittleNews`,
    })
  }

  export const getNewsByNewsId = (newsId:string) => {
    return http<HealthNews>({
      url: `/system/menu/getNewsByNewsId/`+newsId,
    })
  }
  